home *** CD-ROM | disk | FTP | other *** search
/ Total Network Tools 2002 / NextStepPublishing-TotalNetworkTools2002-Win95.iso / Archive / Misc Servers / Zope.exe / ADD.DTML < prev    next >
Encoding:
Text File  |  2000-06-20  |  2.2 KB  |  68 lines

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
  2. <HTML lang="en"><HEAD><TITLE>Add a SQL Method</TITLE>
  3. </HEAD>
  4. <BODY BGCOLOR="#FFFFFF" LINK="#000099" VLINK="#555555">
  5. <H2>Add a SQL Method</H2>
  6.  
  7. <dtml-var "HelpSys.HelpButton('Z-SQL-Method_Add.stx','ZSQLMethods')">
  8.  
  9. <dtml-if SQLConnectionIDs>
  10. <P>
  11. A SQL Method allows you to access a SQL database. For more
  12. information see the
  13. <a href="http://www.zope.org/Documentation/Guides/ZSQL">Z
  14. SQL Methods User's Guide</a>.
  15. </P>
  16.  
  17. <P>In the form below <EM>Connection id</EM> is the name
  18. of the SQL Database Connection to use.
  19. <EM>Arguments</EM> is a list of variables which the
  20. SQL Method accepts.
  21. <EM>Query template</EM> is a template of the SQL statement
  22. which the SQL Method will execute.
  23. </P>
  24.  
  25. <form action="manage_addZSQLMethod" method="post">
  26.  
  27. <table>     
  28.             
  29. <tr>    <th align='LEFT'>Id</th>
  30.         <td align='LEFT'><input name="id" size="40"></td></tr>
  31. <tr>    <th align='LEFT'><em>Title<em></th>
  32.         <td align='LEFT'><input name="title" size="40"></td></tr>
  33. <tr>    <th align='LEFT'>Connection id</th>
  34.         <td align='LEFT'><select name="connection_id">
  35.               <dtml-in SQLConnectionIDs>
  36.                 <option value="&dtml-sequence-item;">
  37.                 <dtml-var sequence-key></option>
  38.               </dtml-in>
  39.             </select></td></tr>
  40. <tr valign="top">    <th align='LEFT'><em>Arguments<em></th>
  41.         <td align='LEFT'>
  42.       <textarea name="arguments" cols="40" rows="4"></textarea>
  43.         </td></tr>
  44. <tr>    <td colspan=2 align='LEFT'><strong>Query template</strong><br>
  45.             <textarea name="template:text" rows=9 cols=50 wrap="off">select *
  46. from data</textarea></td></tr>
  47.  
  48. <tr><td colspan=2>
  49. <input type="hidden" name="key" value="">
  50. <input type="SUBMIT" name="submit" value=" Add ">
  51. <input type="SUBMIT" name="submit" value=" Add and Edit ">
  52. <input type="SUBMIT" name="submit" value=" Add and Test ">
  53. </td></tr>
  54.  
  55. </table>
  56. </form>
  57.  
  58.  
  59. <dtml-else>
  60. <em><strong>Warning:</strong>
  61. There are no SQL database connections.  You need
  62. to add a Zope SQL database connection
  63. before you can use a Zope SQL Method.
  64. </em>
  65. </dtml-if>
  66.  
  67. </body></html>
  68.